#include <iostream>
#include <unistd.h>
#include <vector>
#include "CPHMediaEngine.h"

using namespace std;

int main(int argc, char* argv[])
{
	CPHMediaEngine mediaEngine;
	
	int inputChar;
	int inputChar2;
	bool flag = true;
	while (flag) {
		std::cout << "input 1 to set..." << std::endl;
		std::cout << "input 0 to exit..." << std::endl;
		std::cin >> inputChar;
		std::cout << std::endl;
		switch (inputChar) {
			case 1: {
				// CPHMediaEngine 5.0 API
				std::cout << "input 1 to get CPH features" << std::endl;
				
				std::cin >> inputChar2;
				std::cout << std::endl;
				switch (inputChar2) {
					case 1: {
						std::cout << "feature result: " << mediaEngine.GetCPHMediaFeatures() << std::endl;
						break;
					}
					default: {
						std::cout << "wrong!!! pls re-input..." << std::endl;
					}
				}
				break;
			}
			case 0: {
				std::cout << "exit program" << std::endl;
				flag = false;
				break;
			}
			default: {
				std::cout << "wrong!!! pls re-input..." << std::endl;
			}
		}
	}
	
	return 0;
}